<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>创建Vue根实例</title>
</head>

<body>
    <div id ="app">{{msg}}</div>

    <script src="/js/vue.js"></script>  <!-- vue 路径-->
    <script>  
     //创建Vue实例,得到 ViewModel
     let vm = new Vue({
        el: '#app',
        data: {
            msg:'vue 实例创建成功了!'
        }
     });
    </script>
</body>

</html>